gadgetgetimagexpos#()

Description:

Get the horizontal ( x ) position for the image in a gadgetimage() gadget.

Note: this command will only work with the gadgetimage() gadget.

Syntax:

Required syntax:

 

xpos/xpos# = gadgetgetimagexpos#( gadgethandle )

 

Optional syntax:

 

xpos/xpos# = gadgetgetimagexpos#( gadgethandle , [ pixel_position ] )

 

Parameters:

Required parameters

Description

gadgethandle The handle to the gadgetimage´s image, you wish to get the horizontal position of

Optional parameters

Description

Default
pixel_position Boolean value to set if the returned value should be in percentage across, or pixels across
(percentage across = 0 / pixels across = 1)
0

Returns:

Either a real number as percentage across (0.5 = 50 % = halfway across )
Or an integer as pixels across

Example: